* files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).
authorChong Yidong <cyd@stupidchicken.com>
Sun, 24 Apr 2011 00:24:30 +0000 (20:24 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 24 Apr 2011 00:24:30 +0000 (20:24 -0400)
lisp/ChangeLog
lisp/files.el

index f1a1065116b5f43e5efbb71fdaf1566193c982b5..0c18279606403f813f4764f17bb89d27ec7550d2 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-24  Chong Yidong  <cyd@stupidchicken.com>
 
+       * files.el (auto-mode-alist): Use js-mode for .json (Bug#8529).
+
        * apropos.el (apropos-label-face): Avoid variable-pitch face.
        (apropos-accumulator): Doc fix.
        (apropos-function, apropos-macro, apropos-command)
index 8cd5699eb9ae71428932899f7f76014d557b24f8..72cfc89ef8c1109dff69536f8f6aad23ca61d20e 100644 (file)
@@ -2386,6 +2386,7 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
      ("\\.dtd\\'" . sgml-mode)
      ("\\.ds\\(ss\\)?l\\'" . dsssl-mode)
      ("\\.js\\'" . js-mode)            ; javascript-mode would be better
+     ("\\.json\\'" . js-mode)
      ("\\.[ds]?vh?\\'" . verilog-mode)
      ;; .emacs or .gnus or .viper following a directory delimiter in
      ;; Unix, MSDOG or VMS syntax.